package com.haisen.dataobject.query;

import com.haisen.core.utils.BaseQuery;
import com.haisen.core.utils.DateUtil;
import com.haisen.dataobject.entity.UserWeixin;
import lombok.Data;

@Data
public class UserWeixinQuery extends BaseQuery<UserWeixin> {

    private String shopNo;
    private String name;
    private String weixinNo;
    private String phone;

    private String searchDate;

    /**
     * 转换后的开始日期和结束日期
     */
    private String beginDate;
    private String endDate;

    public String getSearchDate() {
        return searchDate;
    }

    public void setSearchDate(String searchDate) {
        beginDate = DateUtil.splitDateRange(searchDate).get("begin");
        endDate = DateUtil.splitDateRange(searchDate).get("end");
    }


}
